﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace View.Report
{
    public partial class MainXtraReport : DevExpress.XtraReports.UI.XtraReport
    {
        public MainXtraReport()
        {
            InitializeComponent();
        }

        private void xrLabel4_PrintOnPage(object sender, PrintOnPageEventArgs e)
        {
            string s = (e.PageIndex + 1).ToString();

            // Set the label's text and bookmark (this label is located on the PageHeader
            // band, therefore it will show a bookmark for every report page).
            ((XRLabel)sender).Bookmark += s;
            ((XRLabel)sender).Text += s;

        }

    }
}
